#!/usr/bin/env sh

# 确保脚本抛出遇到的错误
set -e

# 安装node依赖包
npm install

# 生成静态文件
sudo npm run docs:build

# 进入生成的文件夹
#cd docs/.vuepress/dist
#
#git init
git add .
git commit -m 'deploy'

# 如果发布到 https://<USERNAME>.github.io/<REPO>
git push -f https://gitee.com/taotao4840/tjpay-docs.git master

cd -
